package com.code.enums;



/**
 * 表单验证
 */
public enum TableFieldValid {
    /**
     * 主键
     */
    id("id", "INTEGER", "主键"),
    /**
     * 创建人
     */
    create_user_id("create_user_id", "INTEGER", "创建人"),
    /**
     * 创建时间
     */
    create_time("create_time", "TIMESTAMP", "创建时间"),
    /**
     * 更新时间
     */
    update_time("update_time", "TIMESTAMP", "更新时间"),
    /**
     * 删除标志
     */
    is_deleted("is_deleted", "TINYINT", "删除标志"),
    ;

    private String key;
    private String type;
    private String describe;

    TableFieldValid(String key, String type, String describe) {
        this.key = key;
        this.type = type;
        this.describe = describe;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }
}
